package com.stellar.circle.controller.miniApp.sPostCategory;


import com.stellar.circle.controller.admin.sPostCategory.vo.SPostCategoryResponseVO;
import com.stellar.circle.domain.sPostCategory.SPostCategoryDomainService;

import com.stellar.web.core.bean.Result;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;
import java.util.List;

/**
 * 帖子分类表控制器
 *
 * @author Jqchan
 * @version 1.0
 * @date 2025-05-17 19:12:02
 */
@RequestMapping("/api-miniApp/sPostCategory")
@RestController("miniAppSPostCategoryController")
@Slf4j
public class SPostCategoryController {

    @Resource
    private SPostCategoryDomainService sPostCategoryDomainService;


    /**
     * 获取帖子分类列表
     *
     * @return
     */
    @GetMapping("/list")
    public Result<List<SPostCategoryResponseVO>> list() {
        List<SPostCategoryResponseVO> list = sPostCategoryDomainService.list();
        return Result.success(list);
    }

}
